import request from "@/utils/request.js";
// 提现账号分页
export const accountListApi = (data) => {
	let option = {
		method: "POST",
		loading: true,
	};
	return request('api/sale/withdrawal/account/list', data, option)
}
// 提现账号新增
export const withdrawalAccountAddApi = (data) => {
	let option = {
		method: "POST",
		loading: true,
	};
	return request('api/sale/withdrawal/account', data, option)
}
// 提现账号修改
export const withdrawalAccountEditApi = (data) => {
	let option = {
		method: "PUT",
		loading: true,
	};
	return request('api/sale/withdrawal/account', data, option)
}
// 提现账号详情
export const withdrawalAccountDetailApi = (id) => {
	let option = {
		method: "GET",
		loading: true,
	};
	return request('api/sale/withdrawal/account/' + id, {}, option)
}
// 提现账号删除
export const withdrawalAccountDelApi = (id) => {
	let option = {
		method: "DELETE",
		loading: true,
	};
	return request('api/sale/withdrawal/account/' + id, {}, option)
}
